package com.jemmyee.shop.entity;
// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * @Description:商品类型
 * @author:jemmyee@gmail.com
 * @date:2011-4-1
 * @version:v1.0
 */
@Entity
@Table(name="so_goods_type")

public class GoodsType  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     private Short enabled;
     private String attrGroup;
     private Date addTime;

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="name", length=60)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="enabled")

    public Short getEnabled() {
        return this.enabled;
    }
    
    public void setEnabled(Short enabled) {
        this.enabled = enabled;
    }
    
    @Column(name="attr_group")

    public String getAttrGroup() {
        return this.attrGroup;
    }
    
    public void setAttrGroup(String attrGroup) {
        this.attrGroup = attrGroup;
    }
    
    @Column(name="add_time", length=0)

    public Date getAddTime() {
        return this.addTime;
    }
    
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }
   








}